package org.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableFeignClients
@EnableHystrix   //客户端启用熔断器
public class HystrixConsumer {

    public static void main(String[] args) {
        SpringApplication.run(HystrixConsumer.class,args);
    }

}
